﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AleaBelli.Core.Data
{
    public class Creator
    {
        private int nextId = 1000;

        public AbstractUnit CreateUnit(Template t, string name)
        {
            if (t.UnitSize == UnitSize.Battalion)
            {
                return new Battalion(t) { Name = name, Id = NextId() };
            }

            return null;
        }

        private int NextId()
        {
            return nextId++;
        }
    }
}
